package com.example.front.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 车间
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WorkshopDto {
    @NotNull(message = "id不能为空")
    private long id;
    @NotBlank(message = "name不能为空")
    private String name;
    @NotNull(message = "userId不能为空")
    private long userId;
    private Long factoryId;
}
